var express = require('express');
var router = express.Router();
const CaptchaService = require("../service/captcha-service.js");

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'Express' });
});

router.get("/gen_code",CaptchaService.gen);
router.get("/verify",CaptchaService.verify);
module.exports = router;
